//
//  SingleTableViewCell.m
//  项目A --半糖
//
//  Created by romana on 16/5/20.
//  Copyright © 2016年 romana. All rights reserved.
//

#import "SingleTableViewCell.h"

@implementation SingleTableViewCell


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{

    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createCell];
    }

    return  self;
}

-(void)createCell{

 //   self.contentView.backgroundColor = [UIColor clearColor];
    self.myLabel = [[UILabel alloc] init];
    self.myLabel.textAlignment = NSTextAlignmentCenter;
    self.myLabel.backgroundColor = [UIColor clearColor];
    [self.contentView addSubview:self.myLabel];
    

}

-(void)layoutSubviews
{

    self.myLabel.frame = CGRectMake(0, 0, 80, 50);


}

-(void)setSinModel:(SingleVCModel *)sinModel{

    _sinModel = sinModel;
    
    self.myLabel.text = _sinModel.name;

}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
